package com.molin.edu.info.manager.factory;

import com.molin.edu.info.manager.dao.BaseStudentDao;
import com.molin.edu.info.manager.dao.NewStudentDao;
import com.molin.edu.info.manager.dao.StudentDao;

public class StudentDaoFactory {
    public static BaseStudentDao getStudentDao(){
        return new NewStudentDao();
    }
    public static BaseStudentDao getStudentDao(String leixing){
        BaseStudentDao dao= new NewStudentDao();
        if (leixing.equals("StudentDao")){
            dao=new StudentDao();
        }
        return dao;
    }
}
